-- GENERATED SPELL FOR [Death's Head Acolyte] --


function spell0_4515(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(15785,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4515', 2000, 1)
end

function spell1_4515(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_4515', 22000, 1)
end

function Sorts_4515(pUnit, Event)
local choix_sorts_4515 = math.random(0, 1)
if choix_sorts_4515 == 0 then
pUnit:RegisterEvent('spell0_4515', 1, 1)
end
if choix_sorts_4515 == 1 then
pUnit:RegisterEvent('spell1_4515', 1, 1)
end
end

function mob4515_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4515', math.random(1500, 3000), 1)
end

function mob4515_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4515_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4515_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4515, 1, 'mob4515_Action')
RegisterUnitEvent(4515, 2, 'mob4515_Leave')
RegisterUnitEvent(4515, 3, 'mob4515_Kill')
RegisterUnitEvent(4515, 4, 'mob4515_Die')
